package clickhouse.config;


import clickhouse.ClickHouseUtil;

import java.io.IOException;
import java.util.Properties;

final public class DataConfig
{
	static Properties pro=new Properties();
	static {
		try {
			pro.load(ClickHouseUtil.class.getClassLoader().getResourceAsStream("config/Config.properties")); //从输入流中读取属性列表
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private DataConfig(){} //防止别人申明该类的对象

	public static String getProperty(String key){
		return pro.getProperty(key);  //从配置文件中读取
	}
}